/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const tableRouter = {
  path: '/setting',
  component: Layout,
  redirect: '/setting/index',
  alwaysShow: true, // will always show the root menu
  meta: {
    title: '参数管理',
    roles: ['participation'] // you can set roles in root nav
  },
  children: [
    {
      path: 'protectiveWear',
      component: () => import('@/views/setting/protectiveWear'),
      name: 'protectiveWear',
      meta: {
        title: '防护用品管理',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'caiYangNum',
      component: () => import('@/views/setting/caiYangNum'),
      name: 'caiYangNum',
      meta: {
        title: '采样数目管理',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'facility',
      component: () => import('@/views/setting/facilitys'),
      name: 'facility',
      meta: {
        title: '仪器设备台账',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    // {
    //   path: 'samplingInstrument',
    //   component: () => import('@/views/setting/samplingInstrument'),
    //   name: 'samplingInstrument',
    //   meta: {
    //     title: '采样仪器管理',
    //     roles: ['myTable'] // or you can only set roles in sub nav
    //   }
    // },
  ]
}
export default tableRouter
